/*
 * Config.cpp
 *
 *  Created on: 19-06-2013
 *      Author: Krzychu
 */

#include "Config.h"

Config::Config()
{
	sourceTextSize = 100000000;
	patternSize = 4;
	textBufferSize = 256;
	debug = true;
	findOneOccurence = false;
}

Config::~Config()
{
	delete this;
}

Config* Config::instance;

Config* Config::getInstance()
{
	if (!instance)
	{
		instance = new Config();
	}

	return instance;
}

unsigned int Config::getPatternSize()
{
	return patternSize;
}

unsigned long int Config::getSourceTextSize()
{
	return sourceTextSize;
}

unsigned int Config::getTextBufferSize()
{
	return textBufferSize;
}

bool Config::getDebug()
{
	return debug;
}

bool Config::getFindOneOccurence()
{
	return findOneOccurence;
}
